#include "simple_factory.h"

#include <iostream>

int main(int argc, char** argv)
{
	AbstractFactory* factory = new SimpleFactory();
	AbstractProduct* product = factory->CreateProduct(AbstractProduct::TYPE_A);
	product->Operation();
	delete product;
	product = NULL;
	
	product = factory->CreateProduct(AbstractProduct::TYPE_B);
	product->Operation();
	delete product;
	product = NULL;
	
	delete factory;
	
	return 0;
}